package com.rules.admin.controller;


import com.baomidou.mybatisplus.core.metadata.IPage;
import com.rules.admin.entity.ErrLogModel;
import com.rules.admin.service.ErrLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.Date;

@RequestMapping({"/errLog"})
@Controller
public class ErrLogController {
   @Autowired
   private ErrLogService errLogService;

   @RequestMapping(
      method = {RequestMethod.GET}
   )
   @ResponseBody
   public IPage<ErrLogModel> getErrLog(String packageName, Date startTime, Date endTime, String username, IPage<ErrLogModel> page, String projectName, String[] projectsName) {
      return this.errLogService.getPage(packageName, startTime, endTime, username, page, projectName, projectsName);
   }
}
